package com.atguigu.guliguli.product.service;

import com.atguigu.guliguli.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
/**
 * @author: 叶子
 * @date: ${YEAR}/${MONTH}/${DAY} ${HOUR}:${MINUTE}
 * @param
 * @return
 **/
public interface CategoryService extends IService<CategoryEntity> {
    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

/**
 *
 * @author: 叶子
 * @Description 根据catalogId查找全路径 父/子/孙
 * @Date  2021/11/27 10:54
 * @Param catalogId id
 * @Return 数组
 **/
    Long[] findCatalogPath(Long catalogId);

    void updateCascade(CategoryEntity category);
}
